package ACWing.WeeklyRace;

import java.util.Scanner;

/**
 * @author :chenjie
 * @description 3729. 改变数组元素(差分)
 * @date :Created 2023/2/19 16:24
 */
public class ChangeArrayElement {
    static int t,n;
    static int[]d=new int[20010];
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        t=sc.nextInt();
        for (int i = 0; i < t; i++) {
            n=sc.nextInt();
            for (int j = 0; j <= n; j++) {
                d[j]=0;
            }
            for (int j = 1; j <= n; j++) {
                int x=sc.nextInt();
                int l=Math.max(1,j-x+1);
                d[l]++;
                d[j+1]--;
            }

            for (int j = 1; j <= n; j++) {
                d[j]+=d[j-1];
                if(d[j]>0){
                    System.out.print(1+" ");
                }else {
                    System.out.print(0+" ");
                }

            }
            System.out.println();
        }
    }

}
